﻿using System;
using System.Collections;
using System.Collections.Generic;

using SY.WebSite.Entity;
using SY.WebSite.BLL;

namespace SY.WebSite.Web.Jifen
{
    public partial class AuctionDetail : BasePage
    {
        public Entity.Auction CurrentAuction = new Entity.Auction();
        public List<AuctionItem> AuctionItemList = new List<AuctionItem>();

        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Tools.Web.Request.GetQueryInt("id", 0);
            if (id <= 0)
                return;

            CurrentAuction = BizAuction.GetByKey(id);
            if (CurrentAuction.Status >= 0)
            {
                AuctionItemList = BizAuctionItem.GetListByAuctionId(CurrentAuction.Id);
            }
            else
                CurrentAuction = new Entity.Auction();
        }
    }
}